package com.java.module.system.domain.dto;

import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 地区
 * 
 * @author yilabao
 * @date 2021年7月7日
 */
@ApiModel(value = "地区请求")
public class RegionDTO {

    @ApiModelProperty(value = "地区类型：1省 2市 3区 4乡镇", required = false, example = "1", position = 1)
    @NotNull
    @Positive
    private Integer regionType;

    @ApiModelProperty(value = "上级ID", required = true, example = "1", position = 2)
    @Nullable
    @Positive
    private Long parentId;

    public Integer getRegionType() {
        return regionType;
    }

    public void setRegionType(Integer regionType) {
        this.regionType = regionType;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "RegionDTO [regionType=" + regionType + ", parentId=" + parentId + "]";
    }

}